<template>
  <div>
    <!-- text不能解析标签 ，html能解析标签 -->
    <div v-text="msg"></div>
    <div v-html="msg1"></div>
  </div>
</template>

<script>
export default {
  components: {},
  props: {},
  data() {
    return {
      msg: "hello world",
      msg1: "<p>爱你</p>",
    };
  },
  computed: {},
  watch: {},
  created() {},
  methods: {},
};
</script>

<style scoped></style>
